package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * articles对象 environmental_articles
 * 
 * @author zrj
 * @date 2025-07-11
 */
public class EnvironmentalArticles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章唯一id */
    private Long articleId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 文本内容（富文本） */
    @Excel(name = "文本内容", readConverterExp = "富=文本")
    private String content;

    /** 阅读次数 */
    @Excel(name = "阅读次数")
    private Long readCount;

    /** 封面图链接 */
    @Excel(name = "封面图链接")
    private String coverUrl;

    /** 作者id（关联用户表） */
    @Excel(name = "作者id", readConverterExp = "关=联用户表")
    private Long authorId;

    /** 精选标识：0=普通, 1=精选 */
    @Excel(name = "精选标识：0=普通, 1=精选")
    private Integer featuredFlag;

    /** 扩展字段4 */
    @Excel(name = "扩展字段4")
    private String ext4;

    /** 扩展字段5 */
    @Excel(name = "扩展字段5")
    private String ext5;

    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }
    public void setCoverUrl(String coverUrl) 
    {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() 
    {
        return coverUrl;
    }
    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }
    public void setFeaturedFlag(Integer featuredFlag) 
    {
        this.featuredFlag = featuredFlag;
    }

    public Integer getFeaturedFlag() 
    {
        return featuredFlag;
    }
    public void setExt4(String ext4) 
    {
        this.ext4 = ext4;
    }

    public String getExt4() 
    {
        return ext4;
    }
    public void setExt5(String ext5) 
    {
        this.ext5 = ext5;
    }

    public String getExt5() 
    {
        return ext5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("readCount", getReadCount())
            .append("coverUrl", getCoverUrl())
            .append("authorId", getAuthorId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("featuredFlag", getFeaturedFlag())
            .append("ext4", getExt4())
            .append("ext5", getExt5())
            .toString();
    }
}
